import { CONFIG_INFO } from '../../../config.mjs'
/** 返回编辑器相关方法 */
export const getDesignableUtil = () => {
  const context = window as any
  const { createBehavior, createResource, GlobalRegistry } = context.Designable.Core
  const { createFieldSchema } = context.InoDesignableVue

  return {
    compName: CONFIG_INFO.name,
    compTitle: CONFIG_INFO.alias,
    IconName: `Comp${CONFIG_INFO.name}`,
    createBehavior,
    createResource,
    GlobalRegistry,
    createFieldSchema
  }
}
